#ifndef _POWER_H
#define _POWER_H

//auto poweroff time--20s
#define		AUTO_POWEROFF				180

#define	POWERMODE_ON			1
#define	POWERMODE_OFF			2
#define	POWERMODE_IDLE		3

extern unsigned long UsbPowerCount;
extern unsigned char PowerState;
extern unsigned char PowerFlag;


void PowerDet(void);
void PowerOn(void);
void PowerOff(void);
void PowerProcess(void);

#endif	//_POWER_H
